package com.yunji.framework_template.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.UsersMapper;
import com.yunji.framework_template.orm.persistence.model.Users;

/**
 * Created by fenglibin on 2018/11/26.
 */
@Service
public class UsersService {

    @Autowired
    private UsersMapper usersMapper;

    public int deleteByPrimaryKey(Integer id) {
        return usersMapper.deleteByPrimaryKey(id);
    }

    public int insert(Users record) {
        return usersMapper.insert(record);
    }

    public int insertSelective(Users record) {
        return usersMapper.insertSelective(record);
    }

    public Users selectByPrimaryKey(Integer id) {
        return usersMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Users record) {
        return usersMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Users record) {
        return usersMapper.updateByPrimaryKey(record);
    }

    public List<Users> selectByCondition(Users record) {
        return usersMapper.selectByCondition(record);
    }

    public List<Users> selectAll() {
        return usersMapper.selectAll();
    }

    public List<Users> selectByPage(Page<Users> page) {
        return usersMapper.selectByPage(page);
    }

    public Integer count(Users record) {
        return usersMapper.count(record);
    }

    public int deleteByCondition(Users record) {
        return usersMapper.deleteByCondition(record);
    }

}
